package com.healthyeating.manage.domain;

import com.healthyeating.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 对话对象 tb_chat
 *
 * @author 段奇乐
 * @date 2025-04-15
 */
public class Chat extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 对话id **/
    private Long chatId;

    /** 对话标题 **/
    private String title;

    /** 对话内容 **/
    private String messageBody;

    /** 所属用户Id **/
    private Long userId;

    public Long getChatId() {
        return chatId;
    }

    public void setChatId(Long chatId) {
        this.chatId = chatId;
    }

    public String getMessageBody() {
        return messageBody;
    }

    public void setMessageBody(String messageBody) {
        this.messageBody = messageBody;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("chatId", getChatId())
                .append("title", getTitle())
                .append("messageBody", getMessageBody())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .toString();
    }
}
